import request from '@/api/resquest1'

export function addNewsList(res) {
  return request({
    url: '/admin/xy/news/list',
    method: 'get',
    res
  })
}
export function saveNews(res) {
  return request({
    url: '/admin/xy/news/save',
    method: 'post',
    res
  })
}
export function delNews(res) {
  return request({
    url: '/admin/xy/news/del',
    method: 'post',
    res
  })
}
export function newsDetail(res) {
  return request({
    url: '/admin/xy/news/detail',
    method: 'get',
    res
  })
}
export function editNews(res) {
  return request({
    url: '/admin/xy/news/update',
    method: 'post',
    res
  })
}
